package com.example.administrator.chinafood;

import android.content.Context;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.InputType;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;

public class PersonRbAddFood extends AppCompatActivity {

    private EditText editText;
    private Button btn;
    private Context context;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.person_rb_addfood);

        context = PersonRbAddFood.this;
        editText = (EditText)findViewById(R.id.person_rb_addfood_ed);
        btn = (Button)findViewById(R.id.person_rb_addfood_btnadd);
        btn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(context,"点击了添加图片",Toast.LENGTH_SHORT).show();
            }
        });
    }
}
